package today.rocky.boot.mycat.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import today.rocky.boot.mycat.entity.Student;
import today.rocky.boot.mycat.mapper.StudentMapper;
import today.rocky.boot.mycat.service.StudentService;

/**
 * @author Rocky
 * @date 2020/2/20 17:24
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Override
    public Student findStudentByIdFromDb(int id) {
        return this.baseMapper.selectById(id);
    }
}
